package easy;

/**
 * @author gh
 * @create 2021-05-30 8:17
 */
public class offer17_printNumbers {
    public int[] printNumbers(int n) {

        int end = (int) (Math.pow(10, n)-1);
        int[] nums =new int[end];
        for(int i =0; i<end;i++){
            nums[i]=i+1;
        }
        return  nums;
    }

    //延伸：大数问题
}
